package com.training.java.core.collections.linkedHashSet;

import java.util.LinkedHashSet;
import java.util.Set;

public class studentNamesDemo {

	public static void main(String[] args) {

		Set<String> studentNames = new LinkedHashSet<String>();

		studentNames.add("Raji");
		studentNames.add("Henry");
		studentNames.add("Sushil");
		studentNames.add("Ravi");
		studentNames.add("Satya");
		studentNames.add("Mira");
		studentNames.add("Siva");
		studentNames.add("Almas");
		studentNames.add("Peng");
		studentNames.add("Suneetha");
		// In the case of LinkedHashSet, it stores
		// in the order we placed in the Set. It keeps that order.
		for (String aStudentName : studentNames) {
			System.out.println("aStudentName = " + aStudentName);

		}

	}

}
